@echo off&setlocal enabledelayedexpansion

dir E:\xixia\PKG\j25\pkg_weblinks /b /s /O:N /A:-D > pkg_list.txt
del pkg_copy_faq.bat
for /f "delims=" %%a in ('findstr "xixia" pkg_list.txt') do (
 set "str=%%a"&set "str=!str:weblink=faq!"
 echo xcopy %%a !str:weblink=faq! /I /Y >> pkg_copy_faq.bat
 xcopy %%a !str:weblink=faq! /I /Y
)

pause>nul